import request from '@/utils/request'

// 获取权限点列表
export const getPermissionList = () => request.get('/sys/permission')

// 新增权限
export const addPermission = (data) => request.post('/sys/permission', data)

// 更新权限
export const updatePermission = (data) => request.put(`/sys/permission/${data.id}`, data)

// 获取更新权限详情
export const getPermissionDetail = (id) => request.get(`/sys/permission/${id}`)

// 删除权限
export const delPermission = (id) => request.delete(`/sys/permission/${id}`)

